<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Social Arena
 */
?>
 <?php
  $this->headScript()
    ->appendFile($this->baseUrl() . '/application/modules/Flashgame/externals/scripts/pagego.js');

?>
<?php if ($this->pageCount > 1): ?>
  <div class="pages">
    <ul class="paginationControl">
    <?php /* Previous page link */ ?>
    <?php if (isset($this->previous)): ?>
    <li>
     <a href="javascript:void(0)" onclick="javascript:pageActionFG('<?php echo $this->previous;?>')"><?php echo $this->translate("&#171; Previous") ?></a>
    </li>
    <?php endif; ?>
    
    <?php foreach ($this->pagesInRange as $page): ?>
        
          <?php if ($page != $this->current): ?>
            <li>
                <a href="javascript:void(0)" onclick="javascript:pageActionFG('<?php echo $page;?>')"><?php echo $page;?></a>
          <?php else: ?>
            <li class="selected"><a href="javascript:void(0)"><?php echo $page; ?></a>
          <?php endif; ?>
      </li>
    <?php endforeach; ?>

    <?php /* Next page link */ ?>
    <?php if (isset($this->next)): ?>
      <?php if (isset($this->previous)): ?>
        
      <?php endif; ?>
        <li>
            <a href="javascript:void(0)" onclick="javascript:pageActionFG('<?php echo $this->next;?>')"><?php echo $this->translate("Next &#187;") ?></a>
        </li>
    <?php endif; ?>
    </ul>
  </div>
<?php endif; ?>